package com.atguigu.gmall.feign.product;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.product.to.CategoryTreeTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @Author:lyd
 **/
@FeignClient("service-product")
public interface CategoryTreeFeignClient {

    @GetMapping("/api/inner/product/category/tree")
    Result<List<CategoryTreeTo>> getCategoryTreeTo();
}
